Measuring the electrical resistance of metals to 40 GPa in the diamond‐anvil cell