A new approach to nanoindentation testing