Study on preparation of magnesium-rich composite coating and performance enhancement by graft modification of epoxy resin