A linearized theory for the motion of a thin ship in regular waves