Add a from_structures to diffusion analyzer.