Structural characterization of ethyl cellulose and its use for preparing polymers with viologen moieties