Plasticity of neocortical synapses enables transitions between rate and temporal coding