Adapting Neural Network Learning Algorithms for Neuromorphic Implementations