Effect of Terminal Groups, Polyene Chain Length, and Solvent on the First Excited Singlet States of Carotenoids