The molecular origin and evolution of dim-light vision in mammals