Effect of spark discharge energy scheduling on ignition under quiescent and flow conditions