Atomic configuration of hydrogenated and clean tantalum(111) surfaces: Bond relaxation, energy entrapment and electron polarization