Calibration of a neutron polarimeter to measure the electric form factor of the neutron