Ecology and evolution of Cambrian reefs