Comparison of the full-potential and frozen-core approximation approaches to density-functional calculations of surfaces