The physics of strong magnetic fields in neutron stars