Modelling reactions and dynamics of type II polyketide ketosynthase enzymes