Near-UV LED-based systems for low-cost and compact oxygen-sensing systems in gas and liquids