A framework for automated additive-subtractive manufacturing of multi-material composites