Crystal structure prediction for multicomponent systems: energy models and structure generation