Development and Evaluation of Control System for Microgrid Supplying Heat and Electricity