Vibrational and electronic excitations in TMD monolayers and heterostructures probed by resonance Raman spectroscopy