The combined effects of biotic and abiotic stress on species richness and connectance