Characterizing electron beam induced damage in metrology and inspection of advance devices