A Path Planning Method for Ship Collision Avoidance Considering Spatial–Temporal Interaction Effects