Accuracy of exchange-correlation functionals and effect of solvation on the surface energy of copper