CnaA domains in bacterial pili are efficient dissipaters of large mechanical shocks