Ship’s autopilot design for automatic collision avoidance based on adaptive neural networks