Charge asymmetry dependence of π/K anisotropic flow in Au+Au and U+U collisions at RHIC