Optimal synthesis of phase-only reconfigurable continuous aperture sources and isophoric sparse-ring arrays