Introducing the core probability framework and discrete-element core probability model for efficient stochastic macroscopic modelling