Multimode acoustic elements for electronic gas-and liquid-identification systems