Code and functions to optimize continuous resistance surfaces using Circuitscape