Rotational 3D printing of damage-tolerant composites with programmable mechanics