Monitoring nitrite with optical sensing films