The magnetic field of neutron stars: What cyclotron lines can tell us