Targeting Conservation Investments in Heterogeneous Landscapes: A distance function approach and application to watershed management