Photomemory of viologen copolymers