Resolution and super-resolution in inverse diffraction