Trifluorides of nitrogen and phosphorus and their oxides. An MS-SCF-X calculation of the electronic structure and photoelectron spectra