What was the main use for electricity in the early industrial revolution?