The motions of a spar buoy in regular waves