How energy is generated in the hydroelectric plant?