Optimization of Nano-Titania and Titania–Chitosan Nanocomposite to Enhance Biocompatibility