Deflection of an atomic beam by a laser wave: transition between diffractive and diffusive regimes | Synapse