EXAFS, Raman and 31P NMR study of amorphous titanium phosphates