The polymer nanocomposite of claim 30, wherein the flocculating agent comprises a quaternary ammonium compound having the structure: wherein R1, R2, R3, and R4 are independently alkyl groups, aryl groups or arylalkyl groups, and wherein at least one of R1, R2, R3, or R4 is an aliphatic group derived from a naturally occurring oil. 54.