Simulation of the water and heat management in proton exchange membrane fuel cells