A comprehensive Monte Carlo calculation of dopant contrast in secondary electron imaging