Light–matter interaction in transition metal dichalcogenides and their heterostructures