Femtosecond laser writing of near-surface waveguides for refractive-index sensing