Intra d-shell excitations of cobalt and nickel acceptors in gallium arsenide