Learning Environment Models with Continuous Stochastic Dynamics