Photothermal depth profiling in the presence of lateral heat flow effects