How to find polarity in circuit diagram