Unifying Bayesian Flow Networks and Diffusion Models through Stochastic Differential Equations