Effect of pressure on the superconductivity of C8KHg and C8RbHg