Identification and idle speed control of internal combustion engines