Scottish Water has completed construction on a 'pioneering' new type of hydro energy generation scheme at a reservoir in East Lothia.