The Aharonov-Bohm effect in double- and single-slit diffraction