Topology optimization of soft matter diffraction gratings | Synapse