A spectral approach for the determination of the reverberating chamber quality factor