Utility functions to extract relevant information from an SPM.mat file