Dissecting the role of peptides in the immune response: theory, practice and the application to vaccine design