On the transformation of diffusion equations into the Kolmogorov equation for the Wiener process