A method for studying the effects of ions and drugs on the resting and action potentials in smooth muscle with external electrodes