A multiscale thermodynamic generalization of Maxwell-Stefan diffusion equations and of the dusty gas model