Persistent and reversible electrostatic control of doping in graphene/hexagonal boron nitride heterostructures