A modeling approach for engine dynamics based on electrical analogy