A salinity management strategy for stream-aquifer systems