Time evolution of the characteristic and probability density function of diffusion processes via neural networks