Modelling the dynamics of coral reef macroalgae using a Bayesian belief network approach