Performance and mechanism of fire retardants in polymers. A review