Comparison of library-based and detailed chemistry models for knock prediction in spark-ignition engines