Scalable physics-informed deep generative model for solving forward and inverse stochastic differential equations