Ultrasound-based measurement of liquid-layer thickness: A novel time-domain approach