Development of macromolecular phosphorus-containing viologens