Sulfur K- and L-edge XANES and electronic structure of zinc, cadmium and mercury monosulfides: a comparative study