Stimulated Brillouin Scattering In Nanophotonic Waveguides And Resonators