Immune mechanisms that determine the quality of antibody responses to vaccines