Analysis of the free-energy surface of proteins from reversible folding simulations