GM to invest $325M in Mich. plant to build EV parts