Patterns of carbon monoxide in the middle atmosphere and effects of solar variability