Combined study of KNbO3 and KTaO3 by different techniques of photoelectron and X-ray emission spectroscopy