Mathematical description of ion transport in membrane systems