The relation between stochastic mechanics and classical stochastic electrodynamics