Calculation of transition metal compounds using an extension of the CNDO formalism. V. many body effects in the inner valence shell photoionization spectra of free and coordinated carbon monoxide