Transient thermal measurements using thermooptic and thermoelectric effects