Effects of reef degradation on dynamics, chemistry, and function of coral microbiomes