Multifunctional fiber-optic nanosensors for environmental monitoring