What is the difference between direct current and alternating current? How do they affect the operation of electrical devices and appliances?