X-ray emission and absorption studies of silicides in relation to their electronic structure