Energy recovery analysis of a CHP system based on a PEM fuel cell