Continuum Modeling Of Bipolar Membranes: From Fundamental Physics To Application In Energy And Environmental Remediation