Marine invertebrates in an algal succession. III. Mechanisms linking habitat complexity with diversity