Predicting the conformational ensembles of proteins