Vector partition functions and index of transversally elliptic operators