An analysis of nanoindentation in elasto-plastic solids