quality factor alternating current