Optimizing vaccination strategies in an age structured SIR model