Structural analysis of nano structured carbon by transmission electron microscopy and image processing