Fabrication of a PVDF membrane with tailored morphology and properties via exploring and computing its ternary phase diagram for wastewater treatment and gas separation applications