Microscopic insight into the single step growth of in-plane heterostructures between graphene and hexagonal boron nitride