Neurostimulation stabilizes spiking neural networks by disrupting seizure-like oscillatory transitions