Mathematical simulation of groundwater abstraction from confined aquifers for river regulation