Photonic Crystal-Based All-Optical Half Adder with High Contrast Ratio