Quenching of two-plasmon decay and stimulated-Raman-scattering instabilities by profile modification