Tracing the influence of land-use change on water quality and coral reefs using a Bayesian model