Structural basis for the function and inhibition of an influenza virus proton channel