Can the speed of sound be used for detecting critical states of fluid mixtures?