On the causality of electrodynamics and the Aharonov-Bohm effect