Modeling and simulations of fuel cell systems for combined heat and power generation