Study of ignition system of SI and CI engines