Optical, Electrical, and Magnetic Properties of Shape-Memory Polymers, Polymer Blends, and Composites