S K- and L-edge XANES and electronic structure of some copper sulfide minerals