Smooth Duals of Inner Forms of GLn and SLn