The water content sensor in heavy oil based on one-dimensional photonic crystals