Structural defects and the electronic structure of zirconium hydrides: x-ray emission spectra and quantum chemical calculations