Brillouin scattering in planar waveguides: I. numerical model