Theoretical and practical aspects of the design and production of synthetic holograms for transmission electron microscopy