Switching devices in sol–gel hybrid thin film technology