Measurement of charge-dependent directed flow in STAR Beam Energy Scan (BES-II) Au+Au and U+U Collisions