Structural transitions mediating virus entry and membrane fusion: influenza and SARS-CoV-2