Training threshold neural networks by extreme learning machine and adaptive stochastic resonance