A mathematical model of ion homeostasis in the malaria parasite, Plasmodium falciparum