Surface photochemistry. II. Wavelength dependences of photoinduced dissociation, desorption, and rearrangement of O2 on Pt(111)