Switching of ion selectivity of membranes by lipophilic ionic sites