how rainbow is formed class 10