Theoretical study of the effect of ion adsorption on membrane potential and its application to collodion membranes