Rigidity of Carnot groups relative to multicontact structures