Designing thermoplastic nanocellular polymers: linking polymer nanostructure to thermal and mechanical performance