An AFM Tip Model for Investigating the Mechanical Properties of Materials at the Nanoscale