Development of a Simulation Model of Transient Operation of Micro-CHP Systems in a Microgrid