A model-based regularized inverse method for ultrasonic B-scan image reconstruction