Simulation of laser generated ultrasound with application to defect detection