Interplay of polymer bionanocomposites and significance of ionic liquids for heavy metal removal