Ab initiocalculation of anisotropic interfacial excess free energies