Simulating the Impact of Stellar Flares on the Climate and Habitability of Terrestrial Earth–Like Exoplanets