Measurement of the magnetic form factor of the neutron