Gaussian beam approach for the radiation from apertures