Theory and models of biodiversity in fragmented landscapes