Ca and S K-edge XANES of CaS calculated by different methods: influence of full potential, core hole and Eu doping.