Chemical Reactions within Single-Walled Carbon Nanotube Channels