Effects of boundary conditions on the nonlinear interaction of sound beams