Stress resistance and genetic diversity of endophytic bacteria isolated from Caragana spp. root nodules.