Pyrolysis study of a phosphorus-containing aliphatic–aromatic polyester and its nanocomposites with layered silicates