Statistical Thermodynamic Treatment of the AFM Tip in Liquid