a prism and a rainbow both show the result of separating white light into colors based on wavelengths. what is is process called