T-Cell Immunogenicity and Dysfunction in Cancer and Viral Diseases