X-ray absorption near edge structure analysis of valence state and coordination geometry of Ti ions in borosilicate glasses