State the principle of potentiometer. Draw a circuit diagram to compare the emf of two primary cells.