Surface potential measurements of reconfigurable p-n junctions in graphene