Microscopic and Spectroscopic Analysis of WO3 and Ti-doped WO3 Thin Films