Groundwater flow systems in mountainous terrain: 1. Numerical modeling technique