Band alignment in carbon-based one-dimensional van der Waals heterostructures