On some aspects of automatic generation control of interconnected power systems in continuous and discrete modes