Photo-assisted surface reactions studied by dynamic mass spectrometry