Physicists determine how auroras are created