Controlled synthesis of N,N,N-trimethyl chitosan for modulated bioadhesion and nasal membrane permeability.