Estimation of hardness by nanoindentation of rough surfaces