Ultraviolet stability of liquid crystals containing cyano and isothiocyanato terminal groups