Temperature-triggered chemical switching growth of in-plane and vertically stacked graphene-boron nitride heterostructures