On the derivation of the Schrödinger equation from stochastic mechanics