Size and temperature effects on the viscosity of water inside carbon nanotubes