Study of defects and interfaces on the atomic scale in epitaxial tio2 thin films on sapphire