A methodology for automated quantitative microstructural analysis of transmission electron micrographs