Explain why alpha and beta particles are deflected in an electric or a magnetic field, but gamma rays are not deflected in such a field.