A method to explore transition paths in macromolecules. Applications to hemoglobin and phosphoglycerate kinase