Mechanistic aspects of the thermal degradation of poly(lactic acid) and poly(β-hydroxybutyric acid)