Ecofriendly Flame-Retardant Cotton Fabrics: Preparation, Flame Retardancy, Thermal Degradation Properties, and Mechanism