Sol–gel based glucose biosensors employing optical oxygen transducers, and a method for compensating for variable oxygen background