When white light passes through a triangular glass prism, there is dispersion because of