Effects of processing on texture, internal stresses and mechanical properties during the pulsed electrodeposition of nanocrystalline and ultrafine-grained nickel