Preparation of stable foams using sterically stabilized pH-responsive latexes synthesized by emulsion polymerization