The effect of pressure on the resistance and lattice parameters of cadmium and zinc