Environmental stresses constrain soil microbial community functions by regulating deterministic assembly and niche width