Modelling the linkage between coral assemblage structure and pattern of environmental forcing