The particle-hole spectra of 16O and 16N as observed in pick-up reactions from 17O