Semi-automatic size measurement of primary particles in aggregated nanomaterials by transmission electron microscopy