Ultrasonic flaw detection in cast iron by boxcar integration