Measurements of physical parameters with ultrasound and microdiaphragms