Mechanical properties of nanocrystalline copper and nickel