Nucleation of cracks near the free surface in deformed metallic nanomaterials with a bimodal structure