An improved synthesis algorithm for reflectarrays design