Exploring the effects of habitat fragmentation on biodiversity