A general description of measurement method for sound absorption and surface impedance of materials using ensemble averaging