Simulation of biodegradable organic contaminants in groundwater: 1. Numerical formulation in principal directions