A spring-loaded mechanism for the conformational change of influenza hemagglutinin