Neutron star core-crust transition and the crustal moment of inertia in the nonlinear relativistic Hartree approximation