Quantitative imaging of anion exchange kinetics in halide perovskites