Effect of Magnesium Ions on the Properties of Foam Films Stabilized with Sodium Dodecyl Sulfate