Apparatus for the measurement of magnetostriction in pulsed magnetic fields