Optimum gradient of mountain paths