Calculation of site enthalpy for binding of ligands and protons to macromolecules