Modeling of physical processes of interaction of ultrasonic wave with metal structures for detection of defects