Optical nitrite sensor based on a potential-sensitive dye and a nitrite-selective carrier