working of hydro power plant