Tuning thermoelectric properties of graphene/boron nitride heterostructures