Dynamic iterative correction algorithm for designing diffractiveoptical elements | Synapse