thermodynamics of crystal surface formation and transformation