A model for atomic mixing and preferential sputtering effects in SIMS depth profiling