Solar flares explode with huge energy thanks to a simple magnetic phenomenon