Synthesis, properties, and functions of thermosensitive copolymers having pyridyl and/or pyridinium groups