Added residual and RK thermodynamic potentials

Added residual and RK thermodynamic potentials; the latter is
calculated from the former and the corresponding ideal gas potential