Loss of habitat and connectivity erodes species diversity, ecosystem functioning, and stability in metacommunity networks | Synapse