Algorithm for capturing primary relaxation processes in excitable gases by two-frequency acoustic measurements