Predicting the Structure of Solids