A framework for studying synaptic plasticity with neural spike train data