Optical humidity sensors based on titania films fabricated by sol–gel and thermal evaporation methods