Elasticity of polymers investigated by atomic-force microscopy