Automated Materials Spectroscopy and Topology Optimizations Using Genetic Algorithms