Systematic approaches to design chitosan functionalised 3D-printed monolith with AI technology for colour removal in wastewater treatment