Analytic elements for flow in layered, anisotropic aquifers