Experimental Investigation on Measurement of Spark Discharge Energy Using Integration Method