Fiber-optic refractive-index sensors based on transmissive and reflective thin-core fiber modal interferometers