Generalized Shannon Basis for Flat Faces of Scatterers and Planar Apertures