A Framework for Forward and Inverse Scattering Analysis of Finite-Aperture Metasurfaces | Synapse