The structure of indices of social mobility and inheritance