Equivalence of the Langevin method and the impedance-field method of calculating noise in devices