Preparation of nanosized titania thick and thin films as gas-sensors