Reducing the number of elements in phase-only reconfigurable arrays generating sum and difference patterns