A raster-based technique for analysing habitat configuration: The cost–benefit approach