Efficient and Stable Mg2+-Doped CsPbCl3 Nanocrystals for Violet LEDs.