Ammonium‐Based Polymer Ionic Liquid Membrane for Wastewater Treatment and Bioenergy Production