Structure and mechanical properties of ultra-nanocrystalline diamond and nanocrystalline Cu from atomistic simulations