Electromagnetic wave sensing of NO3 and COD concentrations for real-time environmental and industrial monitoring