Failure Mechanics of Functional Nanostructures in Advanced Technologies