Bidirectional stream–groundwater flow in response to ephemeral and intermittent streamflow and groundwater seasonality