Dynamics-function relationship in the catalytic domains of N-terminal acetyltransferases