Brillouin Scattering in Planar Waveguides. I. Numerical Model