Heavy Metal Removal from Aqueous Solutions Using Biomaterials and/or Functional Composites: Recent Advances and the Way Forward in Wastewater Treatment Using Digitalization