Structure of ion channels in membranes