Photochemistry of HOx in the upper troposphere at northern midlatitudes