How A Hydroelectric Generator Works