Environmental and geometric constraints on Indo-Pacific coral reef biodiversity