Mechanism of Foam Stabilization by Biopolymers