X-ray absorption spectroscopy of titanium oxide by time dependent density functional calculations