Fiber optic affinity sensors in chemical analysis