Spiropyran main-chain conjugated polymers.