Ion gated synaptic transistors based on 2D van der Waals crystals with tunable diffusive dynamics