Fused Filament Fabrication of Polymers and Continuous Fiber-Reinforced Polymer Composites: Advances in Structure Optimization and Health Monitoring