A two-weight Sobolev inequality for Carnot-Carathéodory spaces