Chemistry of HOx radicals in the upper troposphere