Spike-based Learning Rules and Stabilization of Persistent Neural Activity