The electronic structure of KTaO3: a combined x-ray spectroscopic investigation