Diagnostics of heterogeneous chemical reactions by cathodoluminescence