Goodness-of-fit functions for comparison of simulated and