Simulation of Electromagnetically and Thermally Controlled Ionic Flow in a Fuel Cell