Pinning stabilization of connected neural networks with event-based couplings