Three-dimensional model for multi-component reactive transport with variable density groundwater flow