Modeling aquifer systems with analytic elements and subdomains