Density-functional study of hydration of sodium in water clusters