Intriguing electronic and optical properties of M2CX2 (M = Mo, W; X = O, F) MXenes and their van der Waals heterostructures