Dispersing agent for coatings