Photoacoustic measurement of liquid viscosity