Kinetics of unfolding and refolding of proteins