Surface energy and surface defects