A Stitching Algorithm for Measuring Large Areas Using SEM