Influence of the anion on the spectroscopy and scintillation mechanism in pure and Ce3+-doped K2LaX5 and LaX3 (X=Cl, Br, I)