Acoustically modulated optical emission of hexagonal boron nitride layers