Multicode benchmark on simulated Ti K-edge x-ray absorption spectra of Ti-O compounds