Influence of external conditions on the stability of inorganic gel foam and exploration of the mechanism of action