Design and construction of an electronic ignition system