X-ray absorption studies of unoccupied d-band states in gold and nickel metallic compounds