Optimal operation of a 1-kW PEMFC-based CHP system for residential applications