Nanopatterning of multicomponent van der Waals heterostructures using atomic force microscopy