Photon and electron emission as indicators of intermediate states in surface reactions