Afterheat generation in the HTGR