Mid-IR imaging of doped silicon gratings at a decananometer scale