Plasticity in branch water relations and stem hydraulic vulnerability enhances hydraulic safety in mangroves growing along a salinity gradient.