Nanograined anatase titania-based optochemical gas detection