Halides formation dynamics in nanosecond and femtosecond laser-induced breakdown spectroscopy