X-ray spectroscopic study of the electronic structure of Y 1 − x Pr x Ba 2 Cu 3 O 7