Sustainable design of flexible 3D aerogel from waste PET bottle for wastewater treatment to energy harvesting device