An automated technique for thermoacoustimetry of solids