An extremely powerful solar flare followed by intense geomagnetic activity in late August and early September 1859