Purcell enhancement of X-ray scintillation