Text this: Development and analysis of whispering gallery mode model for refractive index sensing