A method to identify dislocations in a known crystal structure by transmission electron microscopy