Optimization of composite structural components for energy absorption