Thermodynamic analysis of a PEM fuel cell power system