An Effective Algorithm for the Synthesis of a Plane Wave Generator for Linear Array Testing