A unified computational model for cortical post-synaptic plasticity