Generating electricity from waves of oceans