Magnetism of ships