Multimaterial magnetically assisted 3D printing of composite materials