Critical theory of the topological quantum phase transition in the AKLT--SZH chain