A solid-state NMR investigation of the structure and dynamics of polyanilines