Measurement of the polarization parameter in π−p elastic scattering at 40 GeV/c