The effect of valence state and site geometry on Ti L3,2 and O K electron energy-loss spectra of TixOy phases