DFT study of reduction reactions on a palladium cluster supported on a carbon nanotube