Chemical inhomogeneity in the near-surface region of KTaO3 evolving at elevated temperatures