Accessing ratios of quantized resistances in graphene p–n junction devices using multiple terminals