Controllable interatomic interaction mediated by diffractive coupling in a cavity | Synapse