A switching role of postsynaptic calcium in the induction of long-term potentiation or long-term depression in visual cortex