Membrane Materials for Selective Ion Separations at the Water–Energy Nexus