Representing Discrete Events in System Dynamics Models: A Theoretical Application to Modelling Coal Production