Electrons passing through crystals are diffracted because they