Syntheses and properties of photochromic polymers of the azobenzene and thiazine series