Effect of static magnetic field on stimulated Raman and Brillouin scattering