Effects of denaturants on the dynamics of loop formation in polypeptides