The length and hydrogenation effects on electronic transport properties of carbon-based molecular wires