Generating electricity from the oceans