Text this: Surface refractive index sensor based on titanium dioxide composite thin film for detection of cadmium ions