Thermal and mechanical properties of individual polymer nanofibers