Free-space and on-chip diffractive deep neural network for next-generation optical computing | Synapse