Aharonov–Bohm phase for an electromagnetic wave background