The interplay between facilitation and habitat type drives spatial vegetation patterns in global drylands