Photocatalytic Titanium Dioxide Nanostructures for Self-Regenerating Relative Humidity Sensors