Paths to extinction: mode of habitat loss structures extinction thresholds and debts