Why do certain materials affect the speed of light transmitted?