Shell model study for neutron-rich sd-shell nuclei