Magnetic monopoles in neutron stars