A framework to select strategies for conserving and restoring habitat connectivity in complex landscapes