Depth-sensing indentation of nanomaterials and nanostructures