Design principles of electrical synaptic plasticity