Analysis of Ship Motions in Shallow Water