Integrated regulation of signal coding and plasticity by NMDA receptors at a central synapse