Physical variability, diversity gradients and the ecology of temperate and tropical reefs