Modeling and simulation of a DG-SOFC-MGT hybrid system