Substrate effects on the thermal performance of in-plane graphene/hexagonal boron nitride heterostructures