Statistics for Impulse functions over curves and surfaces and their applications to diffraction