Automatic ultrasonic inspection for internal defect detection in composite materials