Quantum microscopy with van der Waals heterostructures