Machine learning for quantum cascade laser design and optimization