Calculation of Protein Folding Thermodynamics Using Molecular Dynamics Simulations