Resins and coatings for electronic components