Pigment dispersant for carbon blacks and organic pigments