Measurement of thermal parameters and mechanical properties of polymers by atomic force microscopy