Derivation of Model of an Adjustable Speed Hydro Generator and Its Control System