Heavy-quark Langevin dynamics and single-electron spectra in nucleus-nucleus collisions