Investigation of metal foam formation by microscopy and ultra small-angle neutron scattering