Robust excitation control of multi-machine multi-load power systems using Hamiltonian function method