Ligand-Mediated Control of Dopant Oxidation State and X-ray Excited Optical Luminescence in Eu-Doped LaOCl.