find the effective resistance across A and B.