The study may help predict dangerous solar storms and protect satellites and power grids.