Design of linear alternators for thermoacoustic machines