Modeling and simulation of PEM fuel cells with CO poisoning