Encircled energy in systems with truncated-Gaussian apertures of different Fresnel numbers. I. Generalization of the Q2n function of E. Wolf and the Yn function of H. H. Hopkins.