Lattice Boltzmann simulations of the acoustic radiation from waveguides