COLREG-compliant ship collision avoidance in narrow channels using curvilinear coordinates