Probability density estimation in stochastic environmental models using reverse representations