Resins for coatings