Optical properties of multilayer heterostructures based on transition metal dichalcogenides