Effect of precursor morphology on the structural properties, optical absorption, and luminescence of BaI2:Eu2+,Eu3+