Optimization of fibers orientation in a composite specimen