Behaviours of a Ship Passing through a Lock under the Influence of a Berthed Ship