Simulation of ultrasonic array imaging of composite materials with defects