Design of Stochastic Computing Architectures using Integrated Optics