Replica exchange molecular dynamics simulations of reversible folding