Communication: regularizing binding energy distributions and thermodynamics of hydration: theory and application to water modeled with classical and ab initio simulations.