Magnetic screw helps capture energy from waves