Probing high-barrier pathways of surface reactions by scanning tunneling microscopy