An analytical study on groundwater flow in drainage basins with horizontal wells