Local rules for synaptic modification in neural networks