Refractive Index Sensing Using a Three-Port Interferometer and Comparison with Ring Resonators