Text this: Applications of electronic structure theory in electron microscopy