Near-field imaging of impedance grating surfaces