least-cost path analysis