Revealing the catalytic mechanism of an ionic liquid with an isotope exchange method