Where did the electricity for the telegraph come from in the early days?