how to draw logic circuit diagram