MACE: a Machine-learning Approach to Chemistry Emulation