All-optical XOR and OR logic gates based on line and point defects in 2-D photonic crystal