Sensitivity analysis for grating reconstruction by