Measurement of the real part of the K−n forward scattering amplitude between 1.2 and 2.6 GeV/c