Ecological connectivity of terrestrial habitat