Mathematical model of mitochondrial ionic homeostasis: three modes of Ca2+ transport.