Impact of chain length on antibacterial activity and hemocompatibility of quaternary N-alkyl and n,n-dialkyl chitosan derivatives.