What determines whether an induced current is a direct current or an alternating current?