Nanotwins induced by grain boundary deformation processes in nanomaterials