On surface free energy calculations