Measurement of the charged-pion polarizability