Automatic guidance of ships along an inductive pilot cable