Electric-charge-dependent directed flow splitting of produced quarks in Au+Au collisions