A method for modeling perforated tube muffler components. I. Theory