Stochastic simulation of multiscale complex systems with PISKaS : a rule-based approach