Fiber optics chemical sensors based on responsive polymers