Gravitational settling of particles through density interfaces