Calculation of Surface Structural Energies