Molecular emission cavity analysis: stimulation of metal halide emissions