Preparation of viologen polymers with carbon chain spacers and their application to the electron-transfer reaction in heterophases