On the growth and mechanical properties of nanostructured cobalt foams by dynamic hydrogen bubble template electrodeposition