Diffraction by edges in natural and artificial structures