Self-emitting blue and red EuOX (X = F, Cl, Br, I) materials: band structure, charge transfer energy, and emission energy.