Dose-optimal vaccine allocation over multiple populations