Photolithographic patterning of polymer-encapsulated optical oxygen sensors