Sample thickness and composition are quantified by backscattered electron imaging. A thin sample is used to achieve spatial resolution of few nanometers. Calculations are carried out with a time-saving electron diffusion model. Small differences in atomic number and density detected at low electron energies.