Incorporating molecular flexibility and conformational variability into crystal structure prediction