Nanomechanics of Defects in Solids