Gap creation and regenerative processes driving diversity and structure of mangrove ecosystems