Electrochemical synthesis of ultrathin film composite membranes