Self-consistent simulation of local potential in external-gate biased graphene nanoribbons