Thermodynamic analysis on superhydrophobicity based on the design of a pillar model