A Self-Optimizing Approach for 3D Printing of High Quality Biocomposites