Sensitivity of wood-rayleigh anomalies in metallic nanogratings