Text this: Optimal control of vaccination dynamics during an influenza epidemic