Molecular electrometer and binding of cations to phospholipid bilayers