Epidemiologic effects of vaccines with complex direct effects in an age-structured population