A study of charge radii and neutron skin thickness near nuclear drip lines