Stochastic-flash analog-to-digital conversion