Capillary Foams: Formation Stages and Effects of System Parameters