3D nanostructure reconstruction based on the SEM imaging principle, and applications