Numerical model of pumping tests in a layered groundwater reservoir