Text this: Tailored knowledge distillation with automated loss function learning