Evolution of chemical and mechanical properties in two-photon polymerized materials during pyrolysis