Analytical determination of atypical quantized resistances in graphene p-n junctions