Stress-induced metabolic exchanges between complementary bacterial types underly a dynamic mechanism of inter-species stress resistance