Hydrocarbon ignition: Automatic generation of reaction mechanisms and applications to modeling of engine knock