3D reconstruction and feature extraction for analysis of nanostructures by SEM imaging