On the plasma environment of solitary waves and weak double layers