Evolution of the macromolecular structure of sporopollenin during thermal degradation