Temperature dependence of the excitonic spectra of monolayer transition metal dichalcogenides