A 3D model for carbon monoxide molecular line emission as a potential cosmic microwave background polarization contaminant