Cooperative optimization of neural-network-based diffraction simulations and benchtop spatial light modulators | Synapse