Base exchange and heat resistance in bacterial spores