What is the primary function of cones in the visual system?