Energy Transformation in Hydroelectric Dams