Habitat structure and community dynamics in marine benthic systems