A Burst-Dependent Algorithm for Neuromorphic On-Chip Learning of Spiking Neural Networks