Stability of the nematic phase of dimerizing aligned cylinders with respect to the smectic and columnar phases