Experimental and theoretical study of the absorption of ultra-soft x-rays in platinum and tantalum