Exogenous melatonin improves salt tolerance in tomato by regulating photosynthetic electron flux and the ascorbate–glutathione cycle