Classical justification of the wave-like behavior of electron beams