Measurement of the dechanneling length for high-energy negative pions