working method of exclusive nor logic gate