On a new mathematical model of maneuvering motions of a ship and its applications