Particle propagation effects on solar flare X- and γ-ray time profiles