Iterative algorithm for the design of diffractive phase elements for laser beam shaping | Synapse