Theory of resistor networks : The two-point resistance