A potential field-based trajectory planning and tracking approach for automatic berthing and COLREGs-compliant collision avoidance