A Matlab class for materials science information and analysis