A novel ternary half adder and multiplier based on carbon nanotube field effect transistors