Simulation of ultrasonic pulse propagation in complex media