On the frequency response of nanostructured thermoacoustic loudspeakers