Phasors and alternating current