Optimisation and memristive response of sol-gel derived TiO2 thin films