MOC3D adapted to simulate 3D density-dependent groundwater flow