A flexible dual-gate hetero-synaptic transistor for spatiotemporal information processing