A causal modelling framework for the simulation and explanation of the behaviour of structures