Structure and optical properties of thin titanium films deposited on different substrates