Measuring rotation in SEM images of integrated circuits