Dynamic equivalent of power system based on global representation heuristic dynamic programming algorithm