Simulations of refractive index variation in a multimode interference coupler: Application to gas sensing