Gelatin-templated mesoporous titania for photocatalytic air treatment and application in metal chalcogenide nanoparticle-sensitized solar cells