what is the conecction of magnetism and electricity