flares on the sun and what they affect