Thermodynamic limit and surface energy of the XXZ spin chain with arbitrary boundary fields