Cluster-based optimization of cellular materials and structures for crashworthiness