Evolution of the Magnetic Field of Neutron Stars