Mechanical synthesis of block and graft copolymers