Synthesis of polyamides contains pyridine and xanthene pendant group: study of optical, thermal, antibacterial activity and hexavalent chromium ion adsorption