Multidimensional size functions for shape comparison