Direct estimation of stacking fault energy by thermodynamic analysis