Adaptation and use of four-body statistical potential to examine thermodynamic properties of proteins