Effect of the inner horizon on the black hole thermodynamics: Reissner–Nordström black hole and Kerr black hole | Synapse