why do different colors have different wavelengths