Learning the Infinitesimal Generator of Stochastic Diffusion Processes