Halogen-free flame retardants for polymeric foams