Prediction of nanoindentation hardness profile from a load-displacement curve