Low-cost refractive index and strain sensor based on tapered fibers