An analysis of nanoindentation in linearly elastic solids