Electrical response of a slime mold to mechanical and electrical stimuli