mathematical model of power system