Nanoscale mechanical property measurements using modified atomic force microscopy