Sudden commencements of magnetic storms and atmospheric dynamo action