A modified fractal dimension as a measure of landscape diversity