Nanomechanics of Hierarchical and Self-Healing Materials