Advantages of direct current and alternating current