Intermediate layers in electrodeposited CMA coatings