Characterization of interfaces in nanoscale semiconductor devices by optimization of depth resolution in SIMS depth profiling