Multiphoton optical and photoelectron spectroscopy of 4s–3d and 5s–4d Rydberg complexes of O2