Spatially and temporally resolved spectral emission of laser-induced plasmas confined by cylindrical cavities