AutoMix: Automatically Mixing Language Models