Rebreathing apparatus for increasing carbon dioxide content in inhaled gas