Relativistic and resonant effects in the ionization of heavy atoms by ultra-intense hard X-rays