Eco-friendly technology to produce energy from textile waste