Model‐based time reversal method for photoacoustic imaging of heterogeneous media