In situ observation and numerical calculations of the evolution of metallic foams