Smart Membranes and Sensors: Synthesis, Characterization, and Applications