Refraction, or bending, of light rays as they move from one material to another occurs because light waves -

A: travel the same speed through all types of materials
B: travel at different speeds through different materials
C: are interrupted by sound waves as they travel
D: are compressed as they speed up