X-ray photoelectron spectra and electronic structure of zirconium trisulfide and triselenide