Energy recovery from the water cycle