Design of all-optical photonic crystal half adder with T-shaped waveguides using path difference based interference