Misfire detection system based on the measurement of crankshaft angular velocity