Surface vs. Bulk sensitivity of sensors based on Rayleigh anomalies in metallic nanogratings