Gradient defects mediate negative thermal quenching in phosphors