How to find a minimum phase output in the exact tracking problem for the nonminimum phase underactuated surface ship