The evolutionary emergence of pandemic influenza