System for generating electrical energy from the wave motion of the sea