Preparation of Metal–Organic Frameworks and Their Application as Flame Retardants for Polystyrene