Chemical evolution with bursts of star formation - Element ratios in dwarf galaxies