Improving stress tolerance in plants by gene transfer