Hydromagnetic equilibria and their evolution in neutron stars