Sol-gel pure and mixed-phase titanium dioxide for photocatalytic purposes: relations between phase composition, catalytic activity, and charge-trapped sites