Structural insights into the catalytic mechanism of a family 18 exo-chitinase