The determination of electron abundances in interstellar clouds