Combined effect of inland groundwater input and tides on flow and salinization in the coastal reservoir and adjacent aquifer