Operation and management of hydroelectric dams