Aharonov–Bohm effect with an effective complex-valued vector potential