All-atom calculation of protein free-energy profiles