Stochastic computations in VLSI analog neural networks