Design of ''smart" segmented polymers by incorporating random copolymers as building blocks