Influence of the Duct Shape on the Q-Factor of a Photoacoustic Helmholtz Resonator