The electronic structure, x-ray photoelectron and emission spectra of YOF