Automated Synthesis of Metasurface Antennas