An optimization-based approach to detailed chemistry tabulation: Automated progress variable definition