Real time simulation of advanced controllers for automatic generation control of interconnected power systems