Structural and dynamic mechanisms for the function and inhibition of the M2 proton channel from influenza A virus.