Intensity-modulated fiber-optic refractive index and strain sensor based on miniaturized modal interferometer