Thermodynamics of crystal surfaces with quasi-liquid layer