Long-term modification of cortical synapses improves sensory perception